<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@	taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="queryPage" value="/tableField/queryPage.do" />

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="../common/easyui/themes/metro-green/easyui.css" />
	<link rel="stylesheet" type="text/css" href="../common/easyui/themes/icon.css" />
	<script type="text/javascript" src="../common/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="../common/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../common/common.js"></script>
	<script type="text/javascript" src="../common/system.js"></script>
	<style type="text/css">
		html, body {
			height: 100%;
			padding: 0;
			margin: 0;
		}
	</style>
</head>

<body>
<!-- 表格 -->
<div id="dg_tableField"></div>

<!-- 表格上的工具栏 -->
<div id="toolbar_tableField" style="padding-left:5px; height:30px;">
	<div style="margin-bottom: 5px;">
		<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">创建</a>
		<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
	</div>
</div>

<!-- “添加”对话框 -->


<!-- JS脚本 -->
<script type="text/javascript">
$(function(){
	// 初始化当前位置
	var success = initLocation("${serverName}", "${databaseName}", "${tableName}");
	if(success){
		// 初始化表格
 		initDG('dg_tableField', 'toolbar_tableField', '${queryPage}', {
			serverName : loc[0],
			databaseName : loc[1],
			tableName : loc[2]
		}); 
		// 更新当前位置显示
		updateTitle('table');
	} else{
		alertErrorMsg();
	}
});
</script>
</body>
</html>